package cn.shop.transcation.order.entity;

import cn.shop.utils.constant.Constant;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.Min;
import java.time.LocalDateTime;

/**
 * @author jzw
 * @since 2021-11-30 09:51
 */
@Data
@Accessors(chain = true)
public class OrderRewardQueryReq {

	@Min(value = 1, message = "页码不能为0")
	private int current;
	/**
	 * 每页记录数
	 */
	@Min(value = 1, message = "每页记录数不能为0")
	private int size;
	/**
	 * 起始时间
	 */
	@DateTimeFormat(pattern = Constant.DATETIME_FORMAT)
	private LocalDateTime startTime;

	/**
	 * 结束时间
	 */
	@DateTimeFormat(pattern = Constant.DATETIME_FORMAT)
	private LocalDateTime endTime;

	/**
	 * 订单号
	 */
	private Long orderId;

	/**
	 * 分区名
	 */
	private String partitionName;

	/**
	 * 买家id
	 */
	private String buyerId;

	/**
	 * 商户编号
	 */
	private Long uid;
	/**
	 * 商户名
	 */
	private String merchantName;

	/**
	 * 买家网站账号
	 */
	private String account;

	private Long type;

}
